import request from '@/utils/request'

// 查询资料库列表
export function getbaseList (query) {
  return request({
    url: '/function/knowledgeData/data/base/list',
    method: 'get',
    params: query
  })
}
// 查询资料库详情
export function getbasechildren (query) {
  return request({
    url: '/function/knowledgeData/data/base/' + query,
    method: 'get',
  })
}
// 新增资料库
export function createdbase (data) {
  return request({
    url: '/function/knowledgeData/data/base',
    method: 'post',
    data: data
  })
}
// 修改资料库
export function updatedbase (data) {
  return request({
    url: '/function/knowledgeData/data/base',
    method: 'put',
    data: data
  })
}
// 删除资料库
export function deletedbase (data) {
  return request({
    url: '/function/knowledgeData/data/base/' + data,
    method: 'delete'
  })
}